
#include "Node.h"
#include <stdlib.h>

bool Node::hasChild() {
	return true;
}


Node* Node::getLeftChild() {
	return leftChild;
}

void Node::setLeftChild(Node* newChild) {
	leftChild = newChild;
}

Node* Node::getRightChild() {
	return rightChild;
}

void Node::setRightChild(Node* child) {
	rightChild = child;
}

Node::Node() {
	leftChild = NULL;
	rightChild = NULL;
}

Node::Node(unsigned int newValue): BaseNode(newValue) {
	leftChild = NULL;
	rightChild = NULL;
}

Node::~Node() {
	delete leftChild;
	delete rightChild;
}

